package com.wzp.yyptproject.service;

import com.wzp.yyptproject.entity.PbDate;
import com.wzp.yyptproject.entity.PbPmDate;
import com.wzp.yyptproject.repository.PbDateRepository;
import com.wzp.yyptproject.repository.PbPmDateRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class PbPmDateServiceimp implements PbPmDateService {

    @Autowired
   private PbPmDateRepository pbPmDateRepository;
    @Override
    public List<PbPmDate> findAll() {
       return pbPmDateRepository.findAll();
    }

    @Override
    public List<PbPmDate> findAllByDDid(Integer did) {
        return pbPmDateRepository.findAndByDDid(did);
    }
}
